package com.info.zhiduoduo.admin.controller;

import com.info.zhiduoduo.admin.model.formbean.system.ListOperationLogFormBean;
import com.info.zhiduoduo.admin.service.SystemOperationLogService;
import com.info.zhiduoduo.common.constants.SmartResult;
import com.info.zhiduoduo.common.formbean.BaseSimpleFormBean;
import com.info.zhiduoduo.repository.entity.system.SystemOperationLog;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/system/operationLog")
public class SystemOperationLogController {

	@Autowired
	SystemOperationLogService systemOperationLogService;

	@ApiOperation("获取操作日志列表")
	@PostMapping("/list")
	public SmartResult<SystemOperationLog> listTasks(@RequestBody BaseSimpleFormBean<ListOperationLogFormBean> formBean) {
		return systemOperationLogService.list(formBean);
	}

}
